package com.tensquare.article.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 文章对象 tb_article
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 专栏ID */
    @Excel(name = "专栏ID")
    private String columnid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userid;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 文章正文 */
    @Excel(name = "文章正文")
    private String content;

    /** 文章封面 */
    @Excel(name = "文章封面")
    private String image;

    /** 是否公开 */
    @Excel(name = "是否公开")
    private String ispublic;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private String istop;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long visits;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long thumbup;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long comment;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String state;

    /** 所属频道 */
    @Excel(name = "所属频道")
    private String channelid;

    /** URL */
    @Excel(name = "URL")
    private String url;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatetime;
}
